class Admin::SessionsController < ApplicationController

    layout 'admin_login'

    def new
    end   

    def create
        name = params[:email]
        password = params[:password]
        if name == "admin@guikepay.com" && password == "guikepay"
            session[:is_admin] = true
            redirect_to "/admin/restaurants"
        else
            render :new    
        end    
    end    
end
